import upload from '@/utils/upload'

export function uploadImg(data) {
	return upload({
		url: '/common/upload',
		name: data.name,
		filePath: data.filePath
	})
}
export function uploadImgs(data) {
	console.log(data)
	return upload({
		url: '/uni/postCtl/saveAndImg',
		files: data.files,
		formData: data.formData
	})
}